int call(int boundary)
{
    int out = 0;
    for(int i = 0; i < boundary; ++i) {
        out += 1000;
    }
    return out;
}

int call_1(int in_1, int in_2, int in_3)
{
    int out = 0;

    for(int i = 0; i < 5; ++i) {
        out += 1000;
        if(0 == in_1) {
            out += 1;
        } else {
            out += 3;
        }
    }

    if(1 == in_2) {
        out += 10;
    } else {
        out += 3;
    }

    if(2 == in_3) {
        out += 100;
    } else {
        out += 3;
    }

    return out;
}